/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

$(document).ready(function(){

});

function  upload_callback(res){
    var  img = '<img  src="' + res.location +'"  width="120"  height="120"  />';
    var  html = '<div  class="img-item">' + img +  '<div  title="' +  res.id + '"></div>' + '</div>';
    $("#photo-list").prepend(html).hide().fadeIn(1000,function(){
        $("#photo-list .img-item:eq(0)").draggable({revert:true});
    });
    
}